package utils

import "regexp"

func IsImage(filename string) bool {
	imageExtensions := `(?i)\.(jpg|jpeg|png|gif|bmp|svg|webp)$`
	match, _ := regexp.MatchString(imageExtensions, filename)
	return match
}
